package edu.udlap.spring2008.is300.finalexam.framework.mvc.observerobservable.favorites;

/**
 *
 * @author Ruslán Ledesma Garza
 */
public interface FavoritesChangedObservable
{
    /**
     * Registers a given observer with the observable object.
     * @param observer
     */
    void addFavoritesChangedListener(FavoritesChangedListener observer);
    
    /**
     * Removes a given observer from updates from the observable object.
     * @param observer
     */
    void removeFavoritesChangedListener(FavoritesChangedListener observer);
    
    /**
     * Notifies observers of an event in the observed object.
     * @param args an object representing any data pushed to observers.
     */
    void raiseFavoritesChangedEvent(Object args); ///allows for pushing data...
}
